import 'package:flutter_demo/getx/getx_middleware.dart';
import 'package:flutter_demo/pages/getx_route_argument.dart';
import 'package:flutter_demo/pages/login_page.dart';
import 'package:flutter_demo/pages/search_page.dart';
import 'package:get/get.dart';

class AppPages {
  static final routes = [
    GetPage(name: '/login', page: () => const LoginPage()),
    GetPage(
      name: '/search',
      page: () => const SearchPage(),
      middlewares: [SearchMiddleware()],
    ),
    GetPage(name: '/getxRouteArgument', page: () => const GetxRouteArgument()),
  ];
  static const defaultTransition = Transition.rightToLeft;
}
